package com.tos.uc.service;

import com.tos.uc.domain.TosUser;
import com.tos.uc.domain.User;

/**
 * Created by yanfei on 2017/6/27.
 */
public interface UserService {

    User getUser(int id);

    TosUser login(String phoneNumber,String password);

    TosUser loginForCode(String  phoneNumber,String code);

    TosUser isExistPhone(String phoneNumber);

    TosUser isExistNickname(String nickName);

    TosUser register(String phoneNumber,String password,String code,String nickName,Integer userFrom);

    TosUser checkCode(String mphone, String code);

    int updateUserPassword(String mphone, String password);

    boolean checkUserExist(String mphone);

    String sendCode(int userId,String mphone, int type);

    int addUserFeedback(int type, int userId, int relateid, String content);
}
